<?php
namespace app\sign\model;

use think\Model;

class course extends Model{

    public function cossign($id){
        $data= $this->alias('cos')
                    ->join('cossign a','cos.Id = a.course_Id')
                    ->join('signlist sign','a.sign_Id = sign.Id')
                    ->where('cos.Id',$id)
                    ->select();
        return $data;
    }

    public function TC($id){
        $data= $this->alias('t')
                    ->join('tc a','t.Id = a.t_Id')
                    ->join('course c','a.C_Id = c.Id')
                    ->where('t.Id',$id)
                    ->select();
        return $data;
    }
}